//
//  WDRescueScanCarRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/30.
//

#import "WDRescueScanCarRequest.h"

@interface WDRescueScanCarRequest ()
@property (nonatomic, strong) WDRescueScanCarReqModel *reqModel;
@end

@implementation WDRescueScanCarRequest

- (instancetype)initWithModel:(WDRescueScanCarReqModel *)model {
    if (self = [super init]) {
        self.reqModel = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kSTATION_TASK_RESCUE_SCAN_CAR;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeJSON;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = [self.reqModel yy_modelToJSONObject];
    return params;
}

- (Class)rspClass {
    return [WDArrivalServiceItemModel class];
}

@end
